<script setup lang="ts">
defineProps({
  title: {
    type: String,
    default: ''
  },
  boxHeight: {
    type: String,
    default: ''
  }
})
</script>
<template>
  <div class="customBox" :style="{ height: boxHeight }">
    <div class="title-box"> {{ title }}</div>
    <div class="content-box"> <slot /> </div>
  </div>
</template>

<style lang="less" scoped>
.customBox {
  margin-bottom: 5px;
  background: rgba(9, 36, 74, 0.9);
  .title-box {
    background: url('@/assets/bit-screen/schedule-mge/title_bg.png') center left;
    background-size: cover;
    padding-left: 40px;
    display: flex;
    align-items: center;
    height: 34px;
    color: #d9e4f2;
  }

  .content-box {
    display: flex;
    justify-content: space-between;
    padding: 2% 3%;
    border: 2px solid #205487;
    box-sizing: border-box;
  }
}
</style>
